</div>
</div>
<script type="text/javascript">
$(document).ready(function() 
{ 
	$('#swich_to_store').change(function()
	{
		$('#swich_to_store_form').submit();
	});
}); 
</script>
	
	<table id="footer_info">
		<tr>
			<td id="menubar_footer">
			<b>
			<?php 
			echo form_open('' , array('id'=>'swich_to_store_form')); 
			$stores = array();
			foreach($this->Employee->get_allowed_stores($this->session->userdata('person_id'))->result_array() as $row)
			{
				$stores[$row['store_id']] = $row['store_code'];
			}			
			echo form_dropdown('swich_to_store', $stores, $this->session->userdata('store_id'), 'id="swich_to_store"');
			
			 
			echo ' ' .$this->Store->get_info($this->session->userdata('store_id'))->store_name; 

			echo " | $user_info->first_name $user_info->last_name | ";
			
			if ($this->config->item('track_cash') && is_object($this->session->userdata('cash_register'))) {
				echo anchor("sales/closeregister?continue=logout",lang("common_logout"));
			} else {
				echo anchor("home/logout",lang("common_logout"));
			}
			echo form_close();
			?>
			
			</b>
			</td>
	
			<td id="menubar_date_time" class="menu_date">
				<?php
				if($this->config->item('time_format') == '24_hour')
				{
					echo date('H:i');					
				}
				else
				{
					echo date('h:i');
				}
				?>
			</td>
			<td id="menubar_date_day" class="menu_date mini_date">
				<?php echo date('D') ?>	
				<br />
				<?php
				if($this->config->item('time_format') != '24_hour')
				{
					echo date('a');
				}
				?>
			</td>
			<td id="menubar_date_spacer" class="menu_date">
				|
			</td>
			<td id="menubar_date_date" class="menu_date">
				<?php echo date('d') ?>
			</td>
			<td id="menubar_date_monthyr" class="menu_date mini_date">
				<?php echo date('F') ?>
				<br />
				<?php echo date('Y') ?>
			</td>
		</tr>
	</table>
	
	<div id="footer_spacer"></div>

	<table id="footer">
		<tr>
			<td id="footer_cred">
				<?php echo lang('common_please_visit_my'); ?> 
					<a href="http://www.phppointofsale.com" target="_blank">
						<?php echo lang('common_website'); ?>
					</a> 
				<?php echo lang('common_learn_about_project'); ?>.
			</td>
			<td id="footer_version">
				<?php echo lang('common_you_are_using_phppos')?> <?php echo APPLICATION_VERSION; ?>.
			</td>
		</tr>
	</table>
</body>
</html>